﻿IF EXISTS (SELECT * FROM sysobjects WHERE type = 'V' AND name = 'TankField_View')
BEGIN
  DROP  View TankField_View
END
GO
CREATE View TankField_View 
AS
SELECT A.*,B.EntName EnterpriseName,B.Addess FROM TankField A 
JOIN Hazard B ON A.EnterpriseID=B.EntID
GO